<?php

/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class FController extends CController {

    public $layout = '//front/main';
    public $menu   = array();
    public $debug       = false;
    public $breadcrumbs = array();
    public $encodeLabel = true;
    public $metaData;

    public function init() {
        $this->pageTitle = Yii::t('app', 'front_default_title');
        $this->metaData = array(
            'keyword' => Yii::t('app', 'front_keyword'),
            'description' => Yii::t('app', 'front_description'),
        );
    }

    protected function beforeAction($action) {
//        Yii::app()->getClientScript()->registerCoreScript('jquery');
        return true;
    }

}